import { createMemoryHistory, createRouter } from "vue-router";

import Login from "../pages/Login.vue"; // Adjust the path as necessary
import Register from "../pages/Register.vue";
import Home from "../pages/Home.vue"; // Adjust the path as necessary
import Ocr from "../pages/ocr.vue"; // Adjust the path as necessary
const routes = [
  {
    path: "/",
    component: Home,
  },
  {
    path: "/login",
    component: Login,
  },
  {
    path: "/register",
    component: Register,
  },
  {
    path: "/ocr",
    component: Ocr,
  },
];

const router = createRouter({
  history: createMemoryHistory(),
  routes,
});

export default router;
